home *** CD-ROM | disk | FTP | other *** search
/ Chip 1996 November / Chip 11-96.iso / workshop / other / testlin / testlin.exe / LINUX / SBIN / MODEMCON.{_N < prev    next >
Encoding:
Text File  |  1995-10-14  |  787 b   |  29 lines

  1. #!/bin/sh
  2. #
  3. # Setup Modem port 
  4. #
  5. dialog --title "MODEM PORT CONFIGURATION" \
  6. --yesno "\n\
  7. This part of the configuration process will create a link in /dev\n\
  8. from your modem device to /dev/modem. You can change this link\n\
  9. later if the setting chosen does not work, or if you switch to a\n\
  10. different port.\n\n\
  11. Would you like to set up your modem?" 12 70
  12. if [ $? = 0 ]; then
  13.   dialog --title "SELECT SERIAL PORT" --menu "Your modem requires a serial port.\n\
  14.  Which one would you \
  15. like to use?" 13 60 4 \
  16. "cua0" "com1: under DOS" \
  17. "cua1" "com2: under DOS" \
  18. "cua2" "com3: under DOS" \
  19. "cua3" "com4: under DOS" 2> /tmp/mport
  20.   if [ $? = 1 ]; then
  21.    rm -f /tmp/mport
  22.    exit
  23.   fi
  24.   MODEM_DEVICE="`cat /tmp/mport`"
  25.   rm -f /tmp/mport
  26.   (cd /dev; ln -sf /dev/$MODEM_DEVICE modem)
  27. fi
  28.  
  29.